package com.xiangyu.demo.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * java类简单作用描述
 *
 * @ProjectName: springboot-demo
 * @Package: com.xiangyu.demo
 * @Description: java类作用描述
 * @Author: 向羽
 * @CreateDate: 2018/1/15 16:17
 * @UpdateUser: 向羽
 * @UpdateDate: 2018/1/15 16:17
 * @UpdateRemark: The modified content
 * @Version: 2.0
 */
@Component
@ConfigurationProperties(prefix = "connection")
public class ConnectionProperties {

    private String username;
    private String remoteAddress;
    private String password;

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getRemoteAddress() {
        return remoteAddress;
    }
    public void setRemoteAddress(String remoteAddress) {
        this.remoteAddress = remoteAddress;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

}
